package com.eagle.videoboot.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author eagle
 * @since 2020-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户对象", description="这是用户对象")
public class Users extends Model<Users> {

    private static final long serialVersionUID = 1L;

	@ApiModelProperty(hidden=true)
    @TableId(value = "id")
    private String id;

    /**
     * 用户名
     */
	@ApiModelProperty(value="用户名", name="username", example="eagle", required=true)
    private String username;

    /**
     * 密码
     */
	@ApiModelProperty(value="密码", name="password", example="123456", required=true)
    private String password;

    /**
     * 我的头像，如果没有默认给一张
     */
	@ApiModelProperty(hidden=true)
    @TableField("face_image")
    private String faceImage;

    /**
     * 昵称
     */
	@ApiModelProperty(hidden=true)
    private String nickname;

    /**
     * 我的粉丝数量
     */
	@ApiModelProperty(hidden=true)
    @TableField("fans_counts")
    private Integer fansCounts;

    /**
     * 我关注的人总数
     */
	@ApiModelProperty(hidden=true)
    @TableField("follow_counts")
    private Integer followCounts;

    /**
     * 我接受到的赞美/收藏 的数量
     */
	@ApiModelProperty(hidden=true)
    @TableField("receive_like_counts")
    private Integer receiveLikeCounts;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
